package controllers;

import ocsf.server.ConnectionToClient;

import com.google.gwt.thirdparty.javascript.jscomp.SymbolTable.Symbol;
import GUI.CustomerGui;
import messages.LoginMessage;
import GUI.LoginGUI;
import entity.User;
/**
 * Class of Customer Controller
 *
 */
	public class CustomerController {
	
	User user;
	LoginMessage loginMsg =new LoginMessage();
	CustomerGui customerWindow;
	ConnectionToClient client;
	
	public CustomerController(){
		
	}
	
	public CustomerController(User user){
		this.user=user;
		
		System.out.println("customer controller: "+ user.getFname());  //for check
	}
	/**
	 * Set an active for the specific customer
	 */
	public void activateCustomerGUI(){
		
		System.out.println("Open CustomerController: " +user.getFname() + "Window");
		
		
		
		customerWindow= new CustomerGui(user.getID());
		LoginGUI loginWindow= new LoginGUI();
		loginWindow.setVisible(false);
				customerWindow.setVisible(true);
	}

	
	
	
	
	
	



}